package com.jhclothing.product.domain;

import com.jhclothing.common.annotation.Excel;
import com.jhclothing.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 服饰品类对象 clothing_type
 *
 * @author zyp
 * @date 2024-04-21
 */
public class ClothingType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 品类ID
     */
    private Long clothingTypeId;

    /**
     * 品类编码
     */
    @Excel(name = "品类编码", sort = 1)
    private String clothingTypeCode;

    /**
     * 品类名称
     */
    @Excel(name = "品类名称", sort = 2)
    private String clothingTypeName;

    /**
     * 服饰类别
     */
    @Excel(name = "服饰类别", sort = 3, readConverterExp = "0=男款,1=女款,2=未知")
    private String clothingSex;

    /**
     * 服饰图片路径
     */
    @Excel(name = "服饰图片路径", sort = 4, width = 50)
    private String clothingImagePath;

    /**
     * 布料编码和性别
     */
    private String clothingTypeCodeAndSex;

    /**
     * 布料对象
     */
    private List<Fabric> fabrics;

    /**
     * 布料组
     */
    private Long[] fabricIds;

    /**
     * 布料厂商，用","分隔
     */
    @Excel(name = "布料厂商", sort = 5, width = 50)
    private String fabricManufacturers;

    public void setClothingTypeId(Long clothingTypeId) {
        this.clothingTypeId = clothingTypeId;
    }

    public Long getClothingTypeId() {
        return clothingTypeId;
    }

    public void setClothingTypeCode(String clothingTypeCode) {
        this.clothingTypeCode = clothingTypeCode;
    }

    public String getClothingTypeCode() {
        return clothingTypeCode;
    }

    public void setClothingTypeName(String clothingTypeName) {
        this.clothingTypeName = clothingTypeName;
    }

    public String getClothingTypeName() {
        return clothingTypeName;
    }

    public void setClothingSex(String clothingSex) {
        this.clothingSex = clothingSex;
    }

    public String getClothingSex() {
        return clothingSex;
    }

    public void setClothingImagePath(String clothingImagePath) {
        this.clothingImagePath = clothingImagePath;
    }

    public String getClothingImagePath() {
        return clothingImagePath;
    }

    public String getClothingTypeCodeAndSex() {
        return clothingTypeCodeAndSex;
    }

    public void setClothingTypeCodeAndSex(String clothingTypeCodeAndSex) {
        this.clothingTypeCodeAndSex = clothingTypeCodeAndSex;
    }

    public List<Fabric> getFabrics() {
        return fabrics;
    }

    public void setFabrics(List<Fabric> fabrics) {
        this.fabrics = fabrics;
    }

    public Long[] getFabricIds() {
        return fabricIds;
    }

    public void setFabricIds(Long[] fabricIds) {
        this.fabricIds = fabricIds;
    }

    public String getFabricManufacturers() {
        return fabricManufacturers;
    }

    public void setFabricManufacturers(String fabricManufacturers) {
        this.fabricManufacturers = fabricManufacturers;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("clothingTypeId", getClothingTypeId())
                .append("clothingTypeCode", getClothingTypeCode())
                .append("clothingTypeName", getClothingTypeName())
                .append("clothingSex", getClothingSex())
                .append("clothingImagePath", getClothingImagePath())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
